package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SCompleteKillEvilTask extends Object implements IMessageBase
    {
        public var type:int;
        public var killEvilTaskType:int;
        public var rewards:Array;
        public var canGetNum:int;
        public const _type:int = 12104;
        public static var _regist:SCompleteKillEvilTask = new SCompleteKillEvilTask(true);

        public function SCompleteKillEvilTask(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SCompleteKillEvilTask();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.type);
            param1.writeInt(this.killEvilTaskType);
            SeqRewardHelper.write(param1, this.rewards);
            param1.writeInt(this.canGetNum);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.type = param1.readInt();
            this.killEvilTaskType = param1.readInt();
            this.rewards = SeqRewardHelper.read(param1);
            this.canGetNum = param1.readInt();
            
        }

    }
}
